Release 10.1A: OpenEdge Application Server:
Administration


Message reuse

The creation of a 4GL message is relatively expensive. The publisher (or sender) of a message should reuse a Message object whenever possible. The message can be cleared for reuse by calling clearBody and clearProperties. The message body of some message types is automatically cleared when new data is set. (For more information, see OpenEdge Development: Messaging and ESB .

The application that consumes messages can reuse them by calling the setReuseMessage message consumer method. If setReuseMessage is called, the message consumer reuses the same Message object for all the messages it receives, provided that the message was not deleted by the application.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095